package com.ruoyi.common.base.enums;


import com.ruoyi.common.base.vo.ComKeyValueVo;

import java.util.ArrayList;
import java.util.List;

/**
 * 通用参数枚举
 *
 * @author gu
 */
public enum HeadCodeEnum {
    ROCKFORMATION("1", "岩层"),//100
    LITHOLOGICNAME("2", "岩性名称"),//200
    FISSUREDEVELOPMENT("3", "裂隙发育情况枚举"),//300
    BEDDINGTYPE("4", "层理类型"),//500
    RELATIONSHIPCOAL("5", "与煤层的接触关系"),
    MACROSCOPICCOAL("6", "宏观煤岩成分"),
    MACROTYPESCOAL("7", "宏观煤岩类型"),
    PRIMARYSTRUCTURALCOAL("8", "原生结构煤结构"),
    PRIMARYSTRUCTURALCOALST("9", "原生结构煤构造"),
    FAULTMORPHOLOGY("10", "断层形态"),
    FAULTTYPE("11", "断层类型"),
    CUTTINGFAULT("12", "断层的切割关系"),
    FOLDMORPHOLOGY("13", "褶皱形态"),
    COLLAPSECOLUMNSHAPE("14", "陷落柱形状"),
    CYLINDRICALMORPHOLOGY("15", "柱面形态"),
    LITHOLOGYFILL("16", "充填物的岩性");
    private final String code;
    private final String type;

    HeadCodeEnum(String code, String type) {
        this.code = code;
        this.type = type;
    }

    public static List<ComKeyValueVo> getArmTypeEnumList() {
        ArrayList<ComKeyValueVo> armTypeEnumList = new ArrayList<>();
        for (HeadCodeEnum armTypeEnum : HeadCodeEnum.values()) {
            ComKeyValueVo armTypeEnumVo = new ComKeyValueVo();
            armTypeEnumVo.setKey(armTypeEnum.code);
            armTypeEnumVo.setValue(armTypeEnum.type);
            armTypeEnumList.add(armTypeEnumVo);
        }
        return armTypeEnumList;
    }

    public String getCode() {
        return code;
    }

    public String getType() {
        return type;
    }
}
